package com.example.leave.pojo;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class Time {
    @NotNull
    int hours;
    @NotNull
    int minutes;
    @NotNull
    int seconds;

    @Override
    public String toString() {
        return hours + ":" + minutes + ":" + seconds;
    }
}
